How to [PERSON_NAME] Debug mode in WordPress

Procédure

Why enable debug mode in WordPress

It is sometimes possible to see a 500 error or a blank page when you open your WordPress website.

To determine which plugin or faulty code is causing this error, you can enable “debug mode” and display all errors on your screen.

How to enable debug mode in WordPress

To enable debug mode in your Wordpress:

If you have a shared plan of the Perso/Starter/Standard/Performance type:

  1. Log in to your customer area or connect to your site via FTP
  2. Use the file manager or your FTP client and edit the wp-config.php file

If you have a shared plan of the cPanel type:

  1. Log in to cPanel or connect to your site via FTP
  2. Use the cPanel file manager or your FTP client and edit the wp-config.php file

If you have a shared plan of the Plesk type:

  1. Log in to your Plesk or connect to your site via FTP
  2. Use the file manager or your FTP client and edit the wp-config.php file

After opening the wp-config.php file to edit it, change the line define( 'WP_DEBUG_DISPLAY', false ); into define( 'WP_DEBUG_DISPLAY', true );

// [PERSON_NAME] enables debugging.
define ('WP_DEBUG', true);
// This disables debugging. 
define ('WP_DEBUG', false);

Conclusion:


You have learned how to enable Debug mode in your Wordpress, Debug mode allows you to view important information such as errors that will help you fix how your site works

Rate this article :

5/5 | 1 opinion

This article was useful to you ?

Article utileYes

Article non utileNo

MerciMerci ! N'hésitez pas à poser des questions sur nos documentations si vous souhaitez plus d'informations et nous aider à les améliorer.


Vous avez noté 0 étoile(s)

Similar articles

17mn reading

How do I update WordPress to the latest version?

1mn reading

How does Yoast SEO work?

4mn reading

How can you optimise your Wordpress site?

1mn reading

How do I use Gutenberg on Wordpress?


Questions sur cet article

Ask the LWS team and its community a question

RGPD : Responsable LWS-Ligne Web Services. Finalité : modération et publication publique de votre question, notification éventuelle d'une réponse. Base légale : consentement (art. 6.1.a RGPD). Conservation des emails : 90 jours après notification, 12 mois maximum sans réponse. Vous pouvez exercer vos droits via notre nos CGV - section RGPD.